# -*- coding: utf-8 -*-
"""
@author:  yinbing.li(yinbing.li@zillnk.com)
@version: 1.0.0
@file:    hhh.py
@time:    2023/3/8 16:08
"""
import random
import time
import turtle
from turtle import *
import tkinter as tk


def getPosition(x, y):
    turtle.setx(x)
    turtle.sety(y)
    print(x, y)


# 无轨迹跳跃
def my_goto(x, y):
    turtle.penup()
    turtle.goto(x, y)
    turtle.pendown()


class Pikachu:

    def __init__(self):
        self.t = turtle.Turtle()
        t = self.t
        t.pensize(3)
        t.speed(9)
        t.ondrag(getPosition)

    def noTrace_goto(self, x, y):
        self.t.penup()
        self.t.goto(x, y)
        self.t.pendown()

    def leftEye(self, x, y):
        self.noTrace_goto(x, y)
        t = self.t
        t.seth(0)
        t.fillcolor('#333333')
        t.begin_fill()
        t.circle(22)
        t.end_fill()

        self.noTrace_goto(x, y + 10)
        t.fillcolor('#000000')
        t.begin_fill()
        t.circle(10)
        t.end_fill()

        self.noTrace_goto(x + 6, y + 22)
        t.fillcolor('#ffffff')
        t.begin_fill()
        t.circle(10)
        t.end_fill()

    def rightEye(self, x, y):
        self.noTrace_goto(x, y)
        t = self.t
        t.seth(0)
        t.fillcolor('#333333')
        t.begin_fill()
        t.circle(22)
        t.end_fill()

        self.noTrace_goto(x, y + 10)
        t.fillcolor('#000000')
        t.begin_fill()
        t.circle(10)
        t.end_fill()

        self.noTrace_goto(x - 6, y + 22)
        t.fillcolor('#ffffff')
        t.begin_fill()
        t.circle(10)
        t.end_fill()

    def mouth(self, x, y):
        self.noTrace_goto(x, y)
        t = self.t

        t.fillcolor('#88141D')
        t.begin_fill()
        # 下嘴唇
        l1 = []
        l2 = []
        t.seth(190)
        a = 0.7
        for i in range(28):
            a += 0.1
            t.right(3)
            t.fd(a)
            l1.append(t.position())

        self.noTrace_goto(x, y)

        t.seth(10)
        a = 0.7
        for i in range(28):
            a += 0.1
            t.left(3)
            t.fd(a)
            l2.append(t.position())

        # 上嘴唇

        t.seth(10)
        t.circle(50, 15)
        t.left(180)
        t.circle(-50, 15)

        t.circle(-50, 40)
        t.seth(233)
        t.circle(-50, 55)
        t.left(180)
        t.circle(50, 12.1)
        t.end_fill()

        # 舌头
        self.noTrace_goto(17, 54)
        t.fillcolor('#DD716F')
        t.begin_fill()
        t.seth(145)
        t.circle(40, 86)
        t.penup()
        for pos in reversed(l1[:20]):
            t.goto(pos[0], pos[1] + 1.5)
        for pos in l2[:20]:
            t.goto(pos[0], pos[1] + 1.5)
        t.pendown()
        t.end_fill()

        # 鼻子
        self.noTrace_goto(-17, 94)
        t.seth(8)
        t.fd(4)
        t.back(8)

    # 红脸颊
    def leftCheek(self, x, y):
        turtle.tracer(False)
        t = self.t
        self.noTrace_goto(x, y)
        t.seth(300)
        t.fillcolor('#DD4D28')
        t.begin_fill()
        a = 2.3
        for i in range(120):
            if 0 <= i < 30 or 60 <= i < 90:
                a -= 0.05
                t.lt(3)
                t.fd(a)
            else:
                a += 0.05
                t.lt(3)
                t.fd(a)
        t.end_fill()
        turtle.tracer(True)

    def rightCheek(self, x, y):
        t = self.t
        turtle.tracer(False)
        self.noTrace_goto(x, y)
        t.seth(60)
        t.fillcolor('#DD4D28')
        t.begin_fill()
        a = 2.3
        for i in range(120):
            if 0 <= i < 30 or 60 <= i < 90:
                a -= 0.05
                t.lt(3)
                t.fd(a)
            else:
                a += 0.05
                t.lt(3)
                t.fd(a)
        t.end_fill()
        turtle.tracer(True)

    def colorLeftEar(self, x, y):
        t = self.t
        self.noTrace_goto(x, y)
        t.fillcolor('#000000')
        t.begin_fill()
        t.seth(330)
        t.circle(100, 35)
        t.seth(219)
        t.circle(-300, 19)
        t.seth(110)
        t.circle(-30, 50)
        t.circle(-300, 10)
        t.end_fill()

    def colorRightEar(self, x, y):
        t = self.t
        self.noTrace_goto(x, y)
        t.fillcolor('#000000')
        t.begin_fill()
        t.seth(300)
        t.circle(-100, 30)
        t.seth(35)
        t.circle(300, 15)
        t.circle(30, 50)
        t.seth(190)
        t.circle(300, 17)
        t.end_fill()

    def body(self):
        t = self.t

        t.fillcolor('#F6D02F')
        t.begin_fill()
        # 右脸轮廓
        t.penup()
        t.circle(130, 40)
        t.pendown()
        t.circle(100, 105)
        t.left(180)
        t.circle(-100, 5)

        # 右耳朵
        t.seth(20)
        t.circle(300, 30)
        t.circle(30, 50)
        t.seth(190)
        t.circle(300, 36)

        # 上轮廓
        t.seth(150)
        t.circle(150, 70)

        # 左耳朵
        t.seth(200)
        t.circle(300, 40)
        t.circle(30, 50)
        t.seth(20)
        t.circle(300, 35)
        # print(t.pos())

        # 左脸轮廓
        t.seth(240)
        t.circle(105, 95)
        t.left(180)
        t.circle(-105, 5)

        # 左手
        t.seth(210)
        t.circle(500, 18)
        t.seth(200)
        t.fd(10)
        t.seth(280)
        t.fd(7)
        t.seth(210)
        t.fd(10)
        t.seth(300)
        t.circle(10, 80)
        t.seth(220)
        t.fd(10)
        t.seth(300)
        t.circle(10, 80)
        t.seth(240)
        t.fd(12)
        t.seth(0)
        t.fd(13)
        t.seth(240)
        t.circle(10, 70)
        t.seth(10)
        t.circle(10, 70)
        t.seth(10)
        t.circle(300, 18)

        t.seth(75)
        t.circle(500, 8)
        t.left(180)
        t.circle(-500, 15)
        t.seth(250)
        t.circle(100, 65)

        # 左脚
        t.seth(320)
        t.circle(100, 5)
        t.left(180)
        t.circle(-100, 5)
        t.seth(220)
        t.circle(200, 20)
        t.circle(20, 70)

        t.seth(60)
        t.circle(-100, 20)
        t.left(180)
        t.circle(100, 20)
        t.seth(300)
        t.circle(10, 70)

        t.seth(60)
        t.circle(-100, 20)
        t.left(180)
        t.circle(100, 20)
        t.seth(10)
        t.circle(100, 60)

        # 横向
        t.seth(180)
        t.circle(-100, 10)
        t.left(180)
        t.circle(100, 10)
        t.seth(5)
        t.circle(100, 10)
        t.circle(-100, 40)
        t.circle(100, 35)
        t.left(180)
        t.circle(-100, 10)

        # 右脚
        t.seth(290)
        t.circle(100, 55)
        t.circle(10, 50)

        t.seth(120)
        t.circle(100, 20)
        t.left(180)
        t.circle(-100, 20)

        t.seth(0)
        t.circle(10, 50)

        t.seth(110)
        t.circle(100, 20)
        t.left(180)
        t.circle(-100, 20)

        t.seth(30)
        t.circle(20, 50)

        t.seth(100)
        t.circle(100, 40)

        # 右侧身体轮廓
        t.seth(200)
        t.circle(-100, 5)
        t.left(180)
        t.circle(100, 5)
        t.left(30)
        t.circle(100, 75)
        t.right(15)
        t.circle(-300, 21)
        t.left(180)
        t.circle(300, 3)

        # 右手
        t.seth(43)
        t.circle(200, 60)

        t.right(10)
        t.fd(10)

        t.circle(5, 160)
        t.seth(90)
        t.circle(5, 160)
        t.seth(90)

        t.fd(10)
        t.seth(90)
        t.circle(5, 180)
        t.fd(10)

        t.left(180)
        t.left(20)
        t.fd(10)
        t.circle(5, 170)
        t.fd(10)
        t.seth(240)
        t.circle(50, 30)

        t.end_fill()
        self.noTrace_goto(130, 125)
        t.seth(-20)
        t.fd(5)
        t.circle(-5, 160)
        t.fd(5)

        # 手指纹
        self.noTrace_goto(166, 130)
        t.seth(-90)
        t.fd(3)
        t.circle(-4, 180)
        t.fd(3)
        t.seth(-90)
        t.fd(3)
        t.circle(-4, 180)
        t.fd(3)

        # 尾巴
        self.noTrace_goto(168, 134)
        t.fillcolor('#F6D02F')
        t.begin_fill()
        t.seth(40)
        t.fd(200)
        t.seth(-80)
        t.fd(150)
        t.seth(210)
        t.fd(150)
        t.left(90)
        t.fd(100)
        t.right(95)
        t.fd(100)
        t.left(110)
        t.fd(70)
        t.right(110)
        t.fd(80)
        t.left(110)
        t.fd(30)
        t.right(110)
        t.fd(32)

        t.right(106)
        t.circle(100, 25)
        t.right(15)
        t.circle(-300, 2)
        ##############
        # print(t.pos())
        t.seth(30)
        t.fd(40)
        t.left(100)
        t.fd(70)
        t.right(100)
        t.fd(80)
        t.left(100)
        t.fd(46)
        t.seth(66)
        t.circle(200, 38)
        t.right(10)
        t.fd(10)
        t.end_fill()

        # 尾巴花纹
        t.fillcolor('#923E24')
        self.noTrace_goto(126.82, -156.84)
        t.begin_fill()

        t.seth(30)
        t.fd(40)
        t.left(100)
        t.fd(40)
        t.pencolor('#923e24')
        t.seth(-30)
        t.fd(30)
        t.left(140)
        t.fd(20)
        t.right(150)
        t.fd(20)
        t.left(150)
        t.fd(20)
        t.right(150)
        t.fd(20)
        t.left(130)
        t.fd(18)
        t.pencolor('#000000')
        t.seth(-45)
        t.fd(67)
        t.right(110)
        t.fd(80)
        t.left(110)
        t.fd(30)
        t.right(110)
        t.fd(32)
        t.right(106)
        t.circle(100, 25)
        t.right(15)
        t.circle(-300, 2)
        t.end_fill()

        # 帽子、眼睛、嘴巴、脸颊
        self.cap(-134.07, 147.81)
        self.mouth(-5, 25)
        self.leftCheek(-126, 32)
        self.rightCheek(107, 63)
        self.colorLeftEar(-250, 100)
        self.colorRightEar(140, 270)
        self.leftEye(-85, 90)
        self.rightEye(50, 110)
        t.hideturtle()

    def cap(self, x, y):
        self.noTrace_goto(x, y)
        t = self.t
        t.fillcolor('#CD0000')
        t.begin_fill()
        t.seth(200)
        t.circle(400, 7)
        t.left(180)
        t.circle(-400, 30)
        t.circle(30, 60)
        t.fd(50)
        t.circle(30, 45)
        t.fd(60)
        t.left(5)
        t.circle(30, 70)
        t.right(20)
        t.circle(200, 70)
        t.circle(30, 60)
        t.fd(70)
        # print(t.pos())
        t.right(35)
        t.fd(50)
        t.circle(8, 100)
        t.end_fill()
        self.noTrace_goto(-168.47, 185.52)
        t.seth(36)
        t.circle(-270, 54)
        t.left(180)
        t.circle(270, 27)
        t.circle(-80, 98)

        t.fillcolor('#444444')
        t.begin_fill()
        t.left(180)
        t.circle(80, 197)
        t.left(58)
        t.circle(200, 45)
        t.end_fill()

        self.noTrace_goto(-58, 270)
        t.pencolor('#228B22')
        t.dot(35)

        self.noTrace_goto(-30, 280)
        t.fillcolor('#228B22')
        t.begin_fill()
        t.seth(100)
        t.circle(30, 180)
        t.seth(190)
        t.fd(15)
        t.seth(100)
        t.circle(-45, 180)
        t.right(90)
        t.fd(15)
        t.end_fill()
        t.pencolor('#000000')

    def start(self):
        self.body()


class Doraemon(object):

    def start(self):
        # 无轨迹跳跃
        def my_goto(x, y):
            penup()
            goto(x, y)
            pendown()

        # 眼睛
        def eyes():
            fillcolor("#ffffff")
            begin_fill()

            tracer(False)
            a = 2.5
            for i in range(120):
                if 0 <= i < 30 or 60 <= i < 90:
                    a -= 0.05
                    lt(3)
                    fd(a)
                else:
                    a += 0.05
                    lt(3)
                    fd(a)
            tracer(True)
            end_fill()

        # 胡须
        def beard():
            my_goto(-32, 135)
            seth(165)
            fd(60)

            my_goto(-32, 125)
            seth(180)
            fd(60)

            my_goto(-32, 115)
            seth(193)
            fd(60)

            my_goto(37, 135)
            seth(15)
            fd(60)

            my_goto(37, 125)
            seth(0)
            fd(60)

            my_goto(37, 115)
            seth(-13)
            fd(60)

        # 嘴巴
        def mouth():
            my_goto(5, 148)
            seth(270)
            fd(100)
            seth(0)
            circle(120, 50)
            seth(230)
            circle(-120, 100)

        # 围巾
        def scarf():
            fillcolor('#e70010')
            begin_fill()
            seth(0)
            fd(200)
            circle(-5, 90)
            fd(10)
            circle(-5, 90)
            fd(207)
            circle(-5, 90)
            fd(10)
            circle(-5, 90)
            end_fill()

        # 鼻子
        def nose():
            my_goto(-10, 158)
            seth(315)
            fillcolor('#e70010')
            begin_fill()
            circle(20)
            end_fill()

        # 黑眼睛
        def black_eyes():
            seth(0)
            my_goto(-20, 195)
            fillcolor('#000000')
            begin_fill()
            circle(13)
            end_fill()

            pensize(6)
            my_goto(20, 205)
            seth(75)
            circle(-10, 150)
            pensize(3)

            my_goto(-17, 200)
            seth(0)
            fillcolor('#ffffff')
            begin_fill()
            circle(5)
            end_fill()
            my_goto(0, 0)

        # 脸
        def face():
            fd(183)
            lt(45)
            fillcolor('#ffffff')
            begin_fill()
            circle(120, 100)
            seth(180)
            # print(pos())
            fd(121)
            pendown()
            seth(215)
            circle(120, 100)
            end_fill()
            my_goto(63.56, 218.24)
            seth(90)
            eyes()
            seth(180)
            penup()
            fd(60)
            pendown()
            seth(90)
            eyes()
            penup()
            seth(180)
            fd(64)

        # 头型
        def head():
            penup()
            circle(150, 40)
            pendown()
            fillcolor('#00a0de')
            begin_fill()
            circle(150, 280)
            end_fill()

        # 画哆啦A梦
        def draw():
            # 头部
            head()

            # 围脖
            scarf()

            # 脸
            face()

            # 红鼻子
            nose()

            # 嘴巴
            mouth()

            # 胡须
            beard()

            # 身体
            my_goto(0, 0)
            seth(0)
            penup()
            circle(150, 50)
            pendown()
            seth(30)
            fd(40)
            seth(70)
            circle(-30, 270)

            fillcolor('#00a0de')
            begin_fill()

            seth(230)
            fd(80)
            seth(90)
            circle(1000, 1)
            seth(-89)
            circle(-1000, 10)

            # print(pos())

            seth(180)
            fd(70)
            seth(90)
            circle(30, 180)
            seth(180)
            fd(70)

            # print(pos())
            seth(100)
            circle(-1000, 9)

            seth(-86)
            circle(1000, 2)
            seth(230)
            fd(40)

            # print(pos())

            circle(-30, 230)
            seth(45)
            fd(81)
            seth(0)
            fd(203)
            circle(5, 90)
            fd(10)
            circle(5, 90)
            fd(7)
            seth(40)
            circle(150, 10)
            seth(30)
            fd(40)
            end_fill()

            # 左手
            seth(70)
            fillcolor('#ffffff')
            begin_fill()
            circle(-30)
            end_fill()

            # 脚
            my_goto(103.74, -182.59)
            seth(0)
            fillcolor('#ffffff')
            begin_fill()
            fd(15)
            circle(-15, 180)
            fd(90)
            circle(-15, 180)
            fd(10)
            end_fill()

            my_goto(-96.26, -182.59)
            seth(180)
            fillcolor('#ffffff')
            begin_fill()
            fd(15)
            circle(15, 180)
            fd(90)
            circle(15, 180)
            fd(10)
            end_fill()

            # 右手
            my_goto(-133.97, -91.81)
            seth(50)
            fillcolor('#ffffff')
            begin_fill()
            circle(30)
            end_fill()

            # 口袋
            my_goto(-103.42, 15.09)
            seth(0)
            fd(38)
            seth(230)
            begin_fill()
            circle(90, 260)
            end_fill()

            my_goto(5, -40)
            seth(0)
            fd(70)
            seth(-90)
            circle(-70, 180)
            seth(0)
            fd(70)

            # 铃铛
            my_goto(-103.42, 15.09)
            fd(90)
            seth(70)
            fillcolor('#ffd200')
            # print(pos())
            begin_fill()
            circle(-20)
            end_fill()
            seth(170)
            fillcolor('#ffd200')
            begin_fill()
            circle(-2, 180)
            seth(10)
            circle(-100, 22)
            circle(-2, 180)
            seth(180 - 10)
            circle(100, 22)
            end_fill()
            goto(-13.42, 15.09)
            seth(250)
            circle(20, 110)
            seth(90)
            fd(15)
            dot(10)
            my_goto(0, -150)

            # 画眼睛
            black_eyes()
        draw()


def draw_pikaqiu():
    turtle.clear()
    print('Painting the Pikachu... ')
    turtle.screensize(800, 500)
    turtle.title('Pikachu')
    pikachu = Pikachu()
    pikachu.start()
    my_goto(-100, -300)
    write('送给我亲爱的杨Poder', font=("Bradley Hand ITC", 30, "bold"))
    turtle.mainloop()


def draw_doraemon():
    turtle.clear()
    print('Painting the Doraemon... ')
    turtle.screensize(800, 600, "#f0f0f0")
    turtle.pensize(3)  # 画笔宽度
    turtle.speed(9)  # 画笔速度
    d = Doraemon()
    d.start()
    # my_goto(-100, -300)
    # write('送给我亲爱的杨Poder', font=("Bradley Hand ITC", 30, "bold"))
    turtle.mainloop()


def draw_peiqi():
    turtle.clear()
    turtle.pensize(4)
    turtle.hideturtle()
    turtle.colormode(255)
    turtle.color((255, 155, 192), "pink")
    turtle.setup(840, 500)
    turtle.speed(10)
    # 鼻子
    turtle.pu()
    turtle.goto(-100, 100)
    turtle.pd()
    turtle.seth(-30)
    turtle.begin_fill()
    a = 0.4
    for i in range(120):
        if 0 <= i < 30 or 60 <= i < 90:
            a = a + 0.08
            turtle.lt(3)  # 向左转3度
            turtle.fd(a)  # 向前走a的步长
        else:
            a = a - 0.08
            turtle.lt(3)
            turtle.fd(a)
    turtle.end_fill()
    turtle.pu()
    turtle.seth(90)
    turtle.fd(25)
    turtle.seth(0)
    turtle.fd(10)
    turtle.pd()
    turtle.pencolor(255, 155, 192)
    turtle.seth(10)
    turtle.begin_fill()
    turtle.circle(5)
    turtle.color(160, 82, 45)
    turtle.end_fill()
    turtle.pu()
    turtle.seth(0)
    turtle.fd(20)
    turtle.pd()
    turtle.pencolor(255, 155, 192)
    turtle.seth(10)
    turtle.begin_fill()
    turtle.circle(5)
    turtle.color(160, 82, 45)
    turtle.end_fill()
    # 头
    turtle.color((255, 155, 192), "pink")
    turtle.pu()
    turtle.seth(90)
    turtle.fd(41)
    turtle.seth(0)
    turtle.fd(0)
    turtle.pd()
    turtle.begin_fill()
    turtle.seth(180)
    turtle.circle(300, -30)
    turtle.circle(100, -60)
    turtle.circle(80, -100)
    turtle.circle(150, -20)
    turtle.circle(60, -95)
    turtle.seth(161)
    turtle.circle(-300, 15)
    turtle.pu()
    turtle.goto(-100, 100)
    turtle.pd()
    turtle.seth(-30)
    a = 0.4
    for i in range(60):
        if 0 <= i < 30 or 60 <= i < 90:
            a = a + 0.08
            turtle.lt(3)  # 向左转3度
            turtle.fd(a)  # 向前走a的步长
        else:
            a = a - 0.08
            turtle.lt(3)
            turtle.fd(a)
    turtle.end_fill()
    # 耳朵
    turtle.color((255, 155, 192), "pink")
    turtle.pu()
    turtle.seth(90)
    turtle.fd(-7)
    turtle.seth(0)
    turtle.fd(70)
    turtle.pd()
    turtle.begin_fill()
    turtle.seth(100)
    turtle.circle(-50, 50)
    turtle.circle(-10, 120)
    turtle.circle(-50, 54)
    turtle.end_fill()
    turtle.pu()
    turtle.seth(90)
    turtle.fd(-12)
    turtle.seth(0)
    turtle.fd(30)
    turtle.pd()
    turtle.begin_fill()
    turtle.seth(100)
    turtle.circle(-50, 50)
    turtle.circle(-10, 120)
    turtle.circle(-50, 56)
    turtle.end_fill()
    # 眼睛
    turtle.color((255, 155, 192), "white")
    turtle.pu()
    turtle.seth(90)
    turtle.fd(-20)
    turtle.seth(0)
    turtle.fd(-95)
    turtle.pd()
    turtle.begin_fill()
    turtle.circle(15)
    turtle.end_fill()
    turtle.color("black")
    turtle.pu()
    turtle.seth(90)
    turtle.fd(12)
    turtle.seth(0)
    turtle.fd(-3)
    turtle.pd()
    turtle.begin_fill()
    turtle.circle(3)
    turtle.end_fill()
    turtle.color((255, 155, 192), "white")
    turtle.pu()
    turtle.seth(90)
    turtle.fd(-25)
    turtle.seth(0)
    turtle.fd(40)
    turtle.pd()
    turtle.begin_fill()
    turtle.circle(15)
    turtle.end_fill()
    turtle.color("black")
    turtle.pu()
    turtle.seth(90)
    turtle.fd(12)
    turtle.seth(0)
    turtle.fd(-3)
    turtle.pd()
    turtle.begin_fill()
    turtle.circle(3)
    turtle.end_fill()
    # 腮
    turtle.color((255, 155, 192))
    turtle.pu()
    turtle.seth(90)
    turtle.fd(-95)
    turtle.seth(0)
    turtle.fd(65)
    turtle.pd()
    turtle.begin_fill()
    turtle.circle(30)
    turtle.end_fill()
    # 嘴
    turtle.color(239, 69, 19)
    turtle.pu()
    turtle.seth(90)
    turtle.fd(15)
    turtle.seth(0)
    turtle.fd(-100)
    turtle.pd()
    turtle.seth(-80)
    turtle.circle(30, 40)
    turtle.circle(40, 80)
    # 身体
    turtle.color("red", (255, 99, 71))
    turtle.pu()
    turtle.seth(90)
    turtle.fd(-20)
    turtle.seth(0)
    turtle.fd(-78)
    turtle.pd()
    turtle.begin_fill()
    turtle.seth(-130)
    turtle.circle(100, 10)
    turtle.circle(300, 30)
    turtle.seth(0)
    turtle.fd(230)
    turtle.seth(90)
    turtle.circle(300, 30)
    turtle.circle(100, 3)
    turtle.color((255, 155, 192), (255, 100, 100))
    turtle.seth(-135)
    turtle.circle(-80, 63)
    turtle.circle(-150, 24)
    turtle.end_fill()
    # 手
    turtle.color((255, 155, 192))
    turtle.pu()
    turtle.seth(90)
    turtle.fd(-40)
    turtle.seth(0)
    turtle.fd(-27)
    turtle.pd()
    turtle.seth(-160)
    turtle.circle(300, 15)
    turtle.pu()
    turtle.seth(90)
    turtle.fd(15)
    turtle.seth(0)
    turtle.fd(0)
    turtle.pd()
    turtle.seth(-10)
    turtle.circle(-20, 90)
    turtle.pu()
    turtle.seth(90)
    turtle.fd(30)
    turtle.seth(0)
    turtle.fd(237)
    turtle.pd()
    turtle.seth(-20)
    turtle.circle(-300, 15)
    turtle.pu()
    turtle.seth(90)
    turtle.fd(20)
    turtle.seth(0)
    turtle.fd(0)
    turtle.pd()
    turtle.seth(-170)
    turtle.circle(20, 90)
    # 脚
    turtle.pensize(10)
    turtle.color((240, 128, 128))
    turtle.pu()
    turtle.seth(90)
    turtle.fd(-75)
    turtle.seth(0)
    turtle.fd(-180)
    turtle.pd()
    turtle.seth(-90)
    turtle.fd(40)
    turtle.seth(-180)
    turtle.color("black")
    turtle.pensize(15)
    turtle.fd(20)
    turtle.pensize(10)
    turtle.color((240, 128, 128))
    turtle.pu()
    turtle.seth(90)
    turtle.fd(40)
    turtle.seth(0)
    turtle.fd(90)
    turtle.pd()
    turtle.seth(-90)
    turtle.fd(40)
    turtle.seth(-180)
    turtle.color("black")
    turtle.pensize(15)
    turtle.fd(20)
    # 尾巴
    turtle.pensize(4)
    turtle.color((255, 155, 192))
    turtle.pu()
    turtle.seth(90)
    turtle.fd(70)
    turtle.seth(0)
    turtle.fd(95)
    turtle.pd()
    turtle.seth(0)
    turtle.circle(70, 20)
    turtle.circle(10, 330)
    turtle.mainloop()


def draw_zhizhuxia():
    turtle.clear()
    bgcolor("#990000")
    pensize(10)
    penup()
    goto(0, 50)
    pendown()
    circle(-120)
    penup()
    circle(-120, -60)
    pendown()
    pensize(5)
    right(50)
    circle(70, 55)
    right(85)
    circle(75, 58)
    right(90)
    circle(70, 55)
    right(90)
    circle(70, 58)
    penup()
    pensize(10)
    goto(80, 15)
    pendown()
    seth(92)
    fd(135)
    seth(125)
    circle(30, 135)
    seth(190)
    fd(50)
    seth(125)
    circle(30, 135)
    seth(275)
    fd(90)
    penup()
    pensize(10)
    goto(92, -150)
    seth(240)
    pendown()
    fd(80)
    left(10)
    circle(-28, 185)
    penup()
    goto(0, 50)
    seth(0)
    pensize(10)
    circle(-120, -60)
    seth(200)
    pendown()
    fd(72)
    left(20)
    circle(30, 150)
    left(20)
    fd(20)
    right(15)
    fd(10)
    pensize(5)
    fillcolor("#3366cc")
    begin_fill()
    seth(92)
    circle(-120, 31)
    seth(200)
    fd(45)
    left(90)
    fd(52)
    end_fill()
    fd(-12)
    right(90)
    fd(40)
    penup()
    right(90)
    fd(18)
    pendown()
    right(86)
    fd(40)
    penup()
    goto(-152, -86)
    pendown()
    left(40)
    circle(35, 90)
    penup()
    goto(-80, 116)
    seth(10)
    pensize(5)
    pendown()
    begin_fill()
    fillcolor("#3366cc")
    fd(155)
    seth(-88)
    fd(37)
    seth(195)
    fd(156)
    end_fill()
    penup()
    goto(-75, 38)
    seth(15)
    pendown()
    begin_fill()
    fd(158)
    seth(-88)
    fd(55)
    seth(140)
    circle(120, 78)
    end_fill()
    penup()
    fillcolor("#3366cc")
    pensize(5)
    goto(75, -170)
    pendown()
    begin_fill()
    seth(240)
    fd(30)
    right(90)
    fd(17)
    end_fill()
    fd(10)
    left(80)
    fd(55)
    penup()
    left(90)
    fd(15)
    pendown()
    left(85)
    fd(55)
    penup()
    goto(43, -225)
    left(84)
    pendown()
    circle(60, 51)
    for i in range(3):
        penup()
        goto(-70 + i * 15, 135)
        seth(-90)
        pendown()
        pensize(5)
        fd(15 - 2 * i)
    for i in range(3):
        penup()
        goto(36 + i * 15, 156)
        seth(-90)
        pendown()
        pensize(5)
        fd(15 - 2 * i)
        a = -60
        b = 70
    for i in range(4):
        penup()
        goto(a, b)
        a = a + 40
        b = b + 10
        seth(-90)
        pendown()
        pensize(5)
        fd(26)

    def oo(li, jing):
        penup()
        goto(0, 50)
        seth(0)
        circle(-120, li)
        pendown()
        right(jing)

    pensize(5)
    oo(-60, 110)
    fd(130)
    oo(-28, 96)
    fd(140)
    oo(9, 89)
    fd(144)
    oo(42, 70)
    fd(160)
    oo(80, 60)
    fd(130)
    penup()
    goto(-80, -40)
    right(160)
    pendown()
    right(50)
    circle(70, 45)
    right(75)
    circle(70, 38)
    right(50)
    circle(70, 45)
    right(90)
    circle(70, 48)
    penup()
    goto(-53, -70)
    pendown()
    left(40)
    circle(70, 30)
    right(50)
    circle(70, 20)
    right(50)
    circle(70, 38)
    right(70)
    circle(70, 24)
    penup()
    goto(-19, -105)
    left(72)
    pendown()
    fd(22)
    right(60)
    fd(22)
    oo(-140, 80)
    circle(-90, 120)
    penup()
    oo(140, 100)
    circle(90, 13)
    pendown()
    right(-50)
    circle(70, 45)
    right(75)
    circle(70, 38)
    right(50)
    circle(70, 36)
    penup()
    goto(22, -185)
    right(70)
    pendown()
    fd(72)
    penup()
    goto(-40, -182)
    right(38)
    pendown()
    fd(70)
    penup()
    pensize(7)
    goto(-15, -110)
    seth(0)
    pendown()
    pensize(10)
    begin_fill()
    left(130)
    fd(110)
    right(250)
    circle(90, 60)
    circle(40, 120)
    fillcolor("#F5FFFA")
    end_fill()
    penup()
    goto(5, -110)
    pendown()
    begin_fill()
    right(30)
    fd(110)
    right(-250)
    circle(-90, 60)
    circle(-40, 120)
    end_fill()
    turtle.hideturtle()
    done()


def draw_xiaohuangren():
    turtle.clear()
    t = turtle.Turtle()
    wn = turtle.Screen()
    turtle.colormode(255)
    t.hideturtle()
    t.speed(10)
    t.penup()
    t.pensize(4)
    t.goto(100, 0)
    t.pendown()
    t.left(90)
    t.color((0, 0, 0), (255, 255, 0))
    # 身体绘制上色
    t.begin_fill()
    t.forward(200)
    t.circle(100, 180)
    t.forward(200)
    t.circle(100, 180)
    t.end_fill()
    # 右眼睛绘制上色
    t.pensize(12)
    t.penup()
    t.goto(-100, 200)
    t.pendown()
    t.right(100)
    t.circle(500, 23)

    t.pensize(3)
    t.penup()
    t.goto(0, 200)
    t.pendown()
    t.seth(270)
    t.color("black", "white")
    t.begin_fill()
    t.circle(30)
    t.end_fill()

    t.penup()
    t.goto(15, 200)
    t.pendown()
    t.color("black", "black")
    t.begin_fill()
    t.circle(15)
    t.end_fill()

    t.penup()
    t.goto(35, 205)
    t.color("black", "white")
    t.begin_fill()
    t.circle(5)
    t.end_fill()
    # 左眼睛绘制上色
    t.pensize(3)
    t.penup()
    t.goto(0, 200)
    t.pendown()
    t.seth(90)
    t.color("black", "white")
    t.begin_fill()
    t.circle(30)
    t.end_fill()

    t.penup()
    t.goto(-15, 200)
    t.pendown()
    t.color("black", "black")
    t.begin_fill()
    t.circle(15)
    t.end_fill()

    t.penup()
    t.goto(-35, 205)
    t.color("black", "white")
    t.begin_fill()
    t.circle(5)
    t.end_fill()

    # 嘴绘制上色
    t.penup()
    t.goto(-20, 100)
    t.pendown()
    t.seth(270)
    t.color("black", "white")
    t.begin_fill()
    t.circle(20, 180)
    t.left(90)
    t.forward(40)
    t.end_fill()

    # 裤子绘制上色
    t.penup()
    t.goto(-100, 0)
    t.pendown()
    t.seth(0)
    t.color("black", "blue")
    t.begin_fill()
    t.forward(20)
    t.left(90)
    t.forward(40)
    t.right(90)
    t.forward(160)
    t.right(90)
    t.forward(40)
    t.left(90)
    t.forward(20)
    t.seth(270)
    t.penup()
    t.goto(-100, 0)
    t.circle(100, 180)
    t.end_fill()

    # 左裤子腰带
    t.penup()
    t.goto(-70, 20)
    t.pendown()
    t.color("black", "blue")
    t.begin_fill()
    t.seth(45)
    t.forward(15)
    t.left(90)
    t.forward(60)
    t.seth(270)
    t.forward(15)
    t.left(40)
    t.forward(50)
    t.end_fill()
    t.left(180)
    t.goto(-70, 30)
    t.dot()

    # 右裤腰带
    t.penup()
    t.goto(70, 20)
    t.pendown()
    t.color("black", "blue")
    t.begin_fill()
    t.seth(135)
    t.forward(15)
    t.right(90)
    t.forward(60)
    t.seth(270)
    t.forward(15)
    t.right(40)
    t.forward(50)
    t.end_fill()

    t.left(180)
    t.goto(70, 30)

    t.dot()

    # 脚
    t.penup()
    t.goto(4, -100)
    t.pendown()
    t.seth(270)
    t.color("black", "black")
    t.begin_fill()
    t.forward(30)
    t.left(90)
    t.forward(40)
    t.seth(20)
    t.circle(10, 180)
    t.circle(400, 2)
    t.seth(90)
    t.forward(20)
    t.goto(4, -100)
    t.end_fill()

    t.penup()
    t.goto(-4, -100)
    t.pendown()
    t.seth(270)
    t.color("black", "black")
    t.begin_fill()
    t.forward(30)
    t.right(90)
    t.forward(40)
    t.seth(20)
    t.circle(10, -225)
    t.circle(400, -3)
    t.seth(90)
    t.forward(21)
    t.goto(-4, -100)
    t.end_fill()

    # 左手
    t.penup()
    t.goto(-100, 50)
    t.pendown()
    t.seth(225)
    t.color("black", "yellow")
    t.begin_fill()
    t.forward(40)
    t.left(90)
    t.forward(35)
    t.seth(90)
    t.forward(50)
    t.end_fill()
    # 右手
    t.penup()
    t.goto(100, 50)
    t.pendown()
    t.seth(315)
    t.color("black", "yellow")
    t.begin_fill()
    t.forward(40)
    t.right(90)
    t.forward(36)
    t.seth(90)
    t.forward(50)
    t.end_fill()

    #
    t.penup()
    t.goto(0, -100)
    t.pendown()
    t.forward(30)

    #
    t.penup()
    t.goto(0, -20)
    t.pendown()
    t.color("yellow")
    t.begin_fill()
    t.seth(45)
    t.forward(20)
    t.circle(10, 180)
    t.right(90)
    t.circle(10, 180)
    t.forward(20)
    t.end_fill()

    #
    t.penup()
    t.color("black")
    t.goto(-100, -20)
    t.pendown()
    t.circle(30, 90)

    t.penup()
    t.goto(100, -20)
    t.pendown()
    t.circle(30, -90)
    # 头顶
    t.penup()
    t.goto(2, 300)
    t.pendown()
    t.begin_fill()
    t.seth(135)
    t.circle(100, 40)
    t.end_fill()

    t.penup()
    t.goto(2, 300)
    t.pendown()
    t.begin_fill()
    t.seth(45)
    t.circle(100, 40)
    t.end_fill()


def draw_labixiaoxin():
    turtle.clear()
    t = turtle
    '''设置'''
    t.setup(800, 500)  # 创建画布并使其位于屏幕中心
    t.pensize(2)  # 画笔粗细
    t.colormode(255)  # 色彩模式
    t.speed(5)  # 绘画速度
    t.color('black', (255, 228, 181))  # 画笔颜色与填充色
    t.shape('turtle')  # 画笔的形状
    t.speed(5)  # 画笔速度
    t.showturtle()  # 使画笔显现
    # 头
    t.pu()
    t.goto(-150, 10)
    t.pd()
    t.seth(0)
    t.begin_fill()
    t.left(135)
    t.circle(-70, 85)
    t.right(8)
    t.circle(-85, 44)
    t.left(10)
    t.circle(40, 61)
    t.right(15)
    t.fd(20)
    t.right(5)
    t.circle(-40, 45)
    t.left(6)
    t.circle(-70, 25)
    t.left(18)
    t.circle(-80, 35)
    t.left(10)
    t.circle(-70, 27)
    t.circle(-120, 54)

    # 耳朵
    t.pu()
    t.goto(82, 30)
    t.pd()
    t.left(140)
    t.fd(20)
    t.right(10)
    t.circle(-20, 65)
    t.seth(-50)
    t.fd(5)
    t.right(13)
    t.circle(-50, 50)
    t.right(10)
    t.circle(-60, 25)
    t.right(7)
    t.circle(-50, 20)
    t.circle(-10, 90)

    # 补充完整头部
    t.pu()
    t.goto(-150, 10)
    t.pd()
    t.color('black', (255, 228, 181))
    t.right(130)
    t.circle(90, 33)
    t.right(16)
    t.circle(370, 28)
    t.end_fill()

    # 头发
    t.color('black', 'black')
    t.pu()
    t.goto(-18, 180)
    t.pd()
    t.begin_fill()
    t.right(30)
    t.circle(-350, 19)
    t.right(38)
    t.circle(-300, 17)
    t.left(135)
    t.fd(23)
    t.left(39)
    t.circle(120, 63)
    t.left(10)
    t.circle(110, 28)
    t.right(11)
    t.circle(85, 14)
    t.end_fill()

    # 眉毛
    t.pu()
    t.goto(-52, 151)
    t.pd()
    t.begin_fill()
    t.right(205)
    t.circle(110, 33)
    t.circle(7, 130)
    t.left(50)
    t.circle(-110, 30)
    t.circle(8, 140)
    t.end_fill()
    t.pu()
    t.goto(48, 140)
    t.pd()
    t.begin_fill()
    t.right(4)
    t.circle(150, 18)
    t.right(4)
    t.circle(-6, 140)
    t.right(28)
    t.circle(-150, 19)
    t.right(10)
    t.circle(-10, 150)
    t.end_fill()
    t.pu()
    t.goto(-69, 126)
    t.pd()
    t.left(70)
    t.circle(-80, 37)
    t.right(15)
    t.circle(-25, 100)
    t.pu()
    t.goto(2, 91)
    t.pd()
    t.left(150)
    t.circle(-70, 30)
    t.right(10)
    t.circle(-40, 60)
    t.circle(-70, 20)

    # 眼睛
    t.pu()
    t.goto(-60, 110)
    t.pd()
    t.begin_fill()
    t.right(52)
    t.circle(27)
    t.end_fill()
    t.color('black', 'white')
    t.pu()
    t.goto(-45, 110)
    t.pd()
    t.begin_fill()
    t.right(24)
    t.circle(20, 80)
    t.circle(7, 100)
    t.seth(40)
    t.fd(22)
    t.left(17)
    t.circle(10, 155)
    t.end_fill()
    t.pu()
    t.goto(-20, 95)
    t.pd()
    t.begin_fill()
    t.left(70)
    t.circle(-14, 80)
    t.circle(-7, 120)
    t.right(44)
    t.circle(35, 30)
    t.end_fill()
    t.pu()
    t.goto(-41, 77)
    t.pd()
    t.begin_fill()
    t.left(28)
    t.circle(6)
    t.end_fill()
    t.color('black', 'black')
    t.pu()
    t.goto(-5, 55)
    t.pd()
    t.begin_fill()
    t.left(10)
    t.circle(-25)
    t.end_fill()
    t.color('black', 'white')
    t.pu()
    t.goto(5, 57)
    t.pd()
    t.begin_fill()
    t.left(40)
    t.circle(-8, 120)
    t.left(30)
    t.circle(-19, 80)
    t.circle(-8, 120)
    t.right(32)
    t.circle(19, 60)
    t.right(55)
    t.circle(-9, 95)
    t.end_fill()
    t.pu()
    t.goto(38, 62)
    t.pd()
    t.begin_fill()
    t.left(190)
    t.circle(-15, 50)
    t.circle(-8, 100)
    t.right(40)
    t.circle(-10, 80)
    t.end_fill()
    t.pu()
    t.goto(10, 50)
    t.pd()
    t.begin_fill()
    t.circle(-5)
    t.end_fill()

    # 嘴巴
    t.pu()
    t.goto(-129, 12)
    t.pd()
    t.circle(-40, 35)
    # 身体
    t.color('black', (205, 32, 32))
    t.pu()
    t.goto(-142, 7)
    t.pd()
    t.begin_fill()
    t.seth(-150)
    t.fd(18)
    t.seth(150)
    t.fd(55)
    t.left(105)
    t.circle(-43, 40)
    t.right(125)
    t.circle(-43, 30)
    t.left(180)
    t.circle(43, 30)
    t.seth(-50)
    t.fd(46)
    t.circle(50, 26)
    t.left(27)
    t.circle(60, 50)
    t.right(180)
    t.circle(100, 60)
    t.seth(0)
    t.fd(194)
    t.left(120)
    t.circle(-50, 50)
    t.fd(25)
    t.right(20)
    t.circle(34, 66)
    t.circle(18, 116)
    t.right(30)
    t.circle(-90, 18)
    t.seth(135)
    t.fd(12)
    t.seth(-145)
    t.fd(10)
    t.right(46)
    t.circle(-90, 20)
    t.circle(10, 100)
    t.circle(-60, 20)
    t.right(130)
    t.circle(-50, 20)
    t.left(90)
    t.circle(-370, 6)
    t.left(15)
    t.circle(-90, 13)
    t.right(7)
    t.circle(-90, 18)
    t.end_fill()
    t.pu()
    t.goto(-64, -33)
    t.pd()
    t.left(160)
    t.circle(100, 40)
    t.circle(40, 40)

    # 手
    t.color('black', (255, 228, 181))
    t.pu()
    t.goto(-62, -28)
    t.pd()
    t.begin_fill()
    t.seth(140)
    t.fd(8)
    t.left(77)
    t.circle(-12, 150)
    t.left(90)
    t.fd(11)
    t.circle(-4, 120)
    t.right(45)
    t.fd(11)
    t.left(130)
    t.circle(20, 35)
    t.circle(-4, 140)
    t.right(30)
    t.circle(-20, 40)
    t.left(160)
    t.circle(20, 40)
    t.circle(-4, 140)
    t.right(20)
    t.circle(-20, 50)
    t.left(190)
    t.circle(-20, 40)
    t.circle(-3, 130)
    t.left(5)
    t.circle(-20, 60)
    t.left(180)
    t.circle(-20, 40)
    t.seth(25)
    t.fd(10)
    t.left(240)
    t.circle(-30, 30)
    t.left(40)
    t.circle(60, 20)
    t.seth(-30)
    t.fd(7)
    t.seth(-125)
    t.fd(25)
    t.end_fill()
    t.pu()
    t.goto(-212, 3)
    t.pd()
    t.begin_fill()
    t.seth(150)
    t.fd(12)
    t.left(90)
    t.fd(8)
    t.right(50)
    t.circle(-9, 90)
    t.left(110)
    t.fd(14)
    t.right(40)
    t.circle(-4, 120)
    t.right(15)
    t.circle(-20, 40)
    t.left(180)
    t.circle(-3, 100)
    t.left(123)
    t.circle(-30, 30)
    t.circle(-3, 150)
    t.right(10)
    t.circle(-30, 30)
    t.seth(80)
    t.fd(3)
    t.left(72)
    t.circle(30, 30)
    t.right(8)
    t.circle(-4, 120)
    t.right(43)
    t.circle(-30, 40)
    t.seth(80)
    t.fd(3)
    t.left(70)
    t.circle(30, 34)
    t.right(17)
    t.circle(-4, 120)
    t.right(27)
    t.circle(-20, 90)
    t.left(180)
    t.circle(-20, 50)
    t.seth(35)
    t.fd(8)
    t.left(234)
    t.circle(60, 20)
    t.seth(-33)
    t.circle(-50, 23)
    t.seth(-119)
    t.fd(16)
    t.end_fill()
    t.hideturtle()
    t.mainloop()


def draw_yinghuashu():
    turtle.clear()
    def Tree(branch, t):
        time.sleep(0.0005)
        if branch > 3:
            if 8 <= branch <= 12:
                if random.randint(0, 2) == 0:
                    t.color('snow')  # 白
                else:
                    t.color('lightcoral')  # 淡珊瑚色
                t.pensize(branch / 3)
            elif branch < 8:
                if random.randint(0, 1) == 0:
                    t.color('snow')
                else:
                    t.color('lightcoral')  # 淡珊瑚色
                t.pensize(branch / 2)
            else:
                t.color('sienna')  # 赭(zhě)色
                t.pensize(branch / 10)  # 6
            t.forward(branch)
            a = 1.5 * random.random()
            t.right(20 * a)
            b = 1.5 * random.random()
            Tree(branch - 10 * b, t)
            t.left(40 * a)
            Tree(branch - 10 * b, t)
            t.right(20 * a)
            t.up()
            t.backward(branch)
            t.down()

    # 掉落的花瓣
    def Petal(m, t):
        for i in range(m):
            a = 200 - 400 * random.random()
            b = 10 - 20 * random.random()
            t.up()
            t.forward(b)
            t.left(90)
            t.forward(a)
            t.down()
            t.color('lightcoral')  # 淡珊瑚色
            t.circle(1)
            t.up()
            t.backward(a)
            t.right(90)
            t.backward(b)

    # 绘图区域
    t = turtle.Turtle()
    # 画布大小
    w = turtle.Screen()
    t.hideturtle()  # 隐藏画笔
    t.getscreen().tracer(5, 0)
    w.screensize(bg='wheat')  # wheat小麦
    t.left(90)
    t.up()
    t.backward(150)
    t.down()
    t.color('sienna')

    # 画樱花的躯干
    Tree(60, t)
    # 掉落的花瓣
    Petal(200, t)
    w.exitonclick()


def draw_rose():
    turtle.clear()
    turtle.penup()
    turtle.left(90)
    turtle.fd(200)
    turtle.pendown()
    turtle.right(90)

    # 花蕊
    turtle.fillcolor("red")
    turtle.begin_fill()
    turtle.circle(10, 180)
    turtle.circle(25, 110)
    turtle.left(50)
    turtle.circle(60, 45)
    turtle.circle(20, 170)
    turtle.right(24)
    turtle.fd(30)
    turtle.left(10)
    turtle.circle(30, 110)
    turtle.fd(20)
    turtle.left(40)
    turtle.circle(90, 70)
    turtle.circle(30, 150)
    turtle.right(30)
    turtle.fd(15)
    turtle.circle(80, 90)
    turtle.left(15)
    turtle.fd(45)
    turtle.right(165)
    turtle.fd(20)
    turtle.left(155)
    turtle.circle(150, 80)
    turtle.left(50)
    turtle.circle(150, 90)
    turtle.end_fill()

    # 花瓣1
    turtle.left(150)
    turtle.circle(-90, 70)
    turtle.left(20)
    turtle.circle(75, 105)
    turtle.setheading(60)
    turtle.circle(80, 98)
    turtle.circle(-90, 40)

    # 花瓣2
    turtle.left(180)
    turtle.circle(90, 40)
    turtle.circle(-80, 98)
    turtle.setheading(-83)

    # 叶子1
    turtle.fd(30)
    turtle.left(90)
    turtle.fd(25)
    turtle.left(45)
    turtle.fillcolor("green")
    turtle.begin_fill()
    turtle.circle(-80, 90)
    turtle.right(90)
    turtle.circle(-80, 90)
    turtle.end_fill()

    turtle.right(135)
    turtle.fd(60)
    turtle.left(180)
    turtle.fd(85)
    turtle.left(90)
    turtle.fd(80)

    # 叶子2
    turtle.right(90)
    turtle.right(45)
    turtle.fillcolor("green")
    turtle.begin_fill()
    turtle.circle(80, 90)
    turtle.left(90)
    turtle.circle(80, 90)
    turtle.end_fill()

    turtle.left(135)
    turtle.fd(60)
    turtle.left(180)
    turtle.fd(60)
    turtle.right(90)
    turtle.circle(200, 60)
    turtle.done()


def main():
    # draw_rose()
    root = tk.Tk()
    root.title('TouchTouchFish')
    root.geometry("500x300")

    root.resizable(False, False)

    btn1 = tk.Button(root, command=draw_pikaqiu)
    btn1["text"] = "皮卡丘"
    btn1.place(relx=0.4, width=100, height=30)

    btn2 = tk.Button(root, command=draw_doraemon)
    btn2["text"] = "哆啦A梦"
    btn2.place(relx=0.4, rely=0.12, width=100, height=30)

    btn3 = tk.Button(root, command=draw_peiqi)
    btn3["text"] = "小猪佩奇"
    btn3.place(relx=0.4, rely=0.24, width=100, height=30)

    btn4 = tk.Button(root, command=draw_zhizhuxia)
    btn4["text"] = "蜘蛛侠"
    btn4.place(relx=0.4, rely=0.36, width=100, height=30)

    btn5 = tk.Button(root, command=draw_xiaohuangren)
    btn5["text"] = "小黄人"
    btn5.place(relx=0.4, rely=0.48, width=100, height=30)

    btn6 = tk.Button(root, command=draw_labixiaoxin)
    btn6["text"] = "蜡笔小新"
    btn6.place(relx=0.4, rely=0.6, width=100, height=30)

    btn7 = tk.Button(root, command=draw_yinghuashu)
    btn7["text"] = "樱花树"
    btn7.place(relx=0.4, rely=0.72, width=100, height=30)

    btn8 = tk.Button(root, command=draw_rose)
    btn8["text"] = "玫瑰花"
    btn8.place(relx=0.4, rely=0.84, width=100, height=30)
    root.mainloop()


if __name__ == '__main__':
    main()


